package com.dp.mallchat.common.user.domain.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Author: dupeng
 * @CreateTime: 2024-06-04  10:14
 * @Description: 修改昵称请求对象
 */
@Data
@ApiModel(value = "修改昵称请求对象")
public class ModifyNameReq {

    @ApiModelProperty(value = "新昵称")
    @Length(max = 6, message = "您这名也太长了，记不住记不住！！")
    @NotBlank(message = "您仔细瞅瞅，是不是忘了点啥")
    private String name;

}
